﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.DNL.CSharp.Grammar.Attribute
{
    /// <summary>
    /// 作者特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class,AllowMultiple =true,Inherited =false)]
    public class AuthorAttribute : System.Attribute
    {
        public AuthorAttribute(string name)
        {
            this.Name = name;
        }
        /// <summary>
        /// 作者姓名(只有get选择器,这样只能通过构造函数传参)
        /// </summary>
        public string Name { get; }
    }
}
